#ifndef TCPSERVER_H
#define TCPSERVER_H

#include <QWidget>
#include "server.h"

namespace Ui {
class TcpServer;
}

class TcpServer : public QWidget
{
    Q_OBJECT

public:
    explicit TcpServer(QWidget *parent = 0);
    ~TcpServer();

protected slots:
    void slotupdateserver(QString, int);//接收到server发过来的信号就更新界面的信息

private slots:
    void on_bt_createChatRoom_clicked();

private:
    Ui::TcpServer *ui;
    int port;
    Server *server;
};

#endif // TCPSERVER_H
